Low: libvirt security and bug fix update

Related Vulnerabilities: CVE-2012-2693   CVE-2012-2693  

Synopsis

Low: libvirt security and bug fix update

Type/Severity

Security Advisory: Low

Topic

Updated libvirt packages that fix one security issue and several bugs are
now available for Red Hat Enterprise Linux 5.

The Red Hat Security Response Team has rated this update as having low
security impact. A Common Vulnerability Scoring System (CVSS) base score,
which gives a detailed severity rating, is available from the CVE link in
the References section.

Description

The libvirt library is a C API for managing and interacting with the
virtualization capabilities of Linux and other operating systems. In
addition, libvirt provides tools for remote management of virtualized
systems.

Bus and device IDs were ignored when attempting to attach multiple USB
devices with identical vendor or product IDs to a guest. This could result
in the wrong device being attached to a guest, giving that guest root
access to the device. (CVE-2012-2693)

This update also fixes the following bugs:

  • Previously, the libvirtd library failed to set the autostart flags for
    already defined QEMU domains. This bug has been fixed, and the domains can
    now be successfully marked as autostarted. (BZ#675319)
  • Prior to this update, the virFileAbsPath() function was not taking into
    account the slash ("/") directory separator when allocating memory for
    combining the cwd() function and a path. This behavior could lead to a
    memory corruption. With this update, a transformation to the virAsprintff()
    function has been introduced into virFileAbsPath(). As a result, the
    aforementioned behavior no longer occurs. (BZ#680289)
  • With this update, a man page of the virsh user interface has been
    enhanced with information on the "domxml-from-native" and
    "domxml-to-native" commands. A correct notation of the format argument has
    been clarified. As a result, confusion is avoided when setting the format
    argument in the described commands. (BZ#783001)

All users of libvirt are advised to upgrade to these updated packages,
which contain backported patches to correct these issues. After installing
the updated packages, libvirtd will be restarted automatically.

Solution

Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258

Affected Products

  • Red Hat Enterprise Linux Server 5 x86_64
  • Red Hat Enterprise Linux Server 5 ia64
  • Red Hat Enterprise Linux Server 5 i386
  • Red Hat Enterprise Linux Workstation 5 x86_64
  • Red Hat Enterprise Linux Workstation 5 i386

Fixes

  • BZ - 675319 - qemu guests autostart problem
  • BZ - 680289 - off-by-one in virFileAbsPath can lead to memory corruption [5.7]
  • BZ - 772821 - Coverity scan revealed defects
  • BZ - 772848 - Coverity scan founds some new resource leaks and NULL pointer dereference
  • BZ - 783001 - Need to improve virsh domxml-*-native command docs
  • BZ - 831164 - CVE-2012-2693 libvirt: address bus= device= when identicle vendor ID/product IDs usb devices attached are ignored

CVEs

References